<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>首页 | OA</title>

    <!--STYLESHEET-->
    <!--=================================================-->

    <!--Open Sans Font [ OPTIONAL ] -->
    <link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&amp;subset=latin" rel="stylesheet">

    <!--Bootstrap Stylesheet [ REQUIRED ]-->
    <link href="../resource/core/css/bootstrap.min.css" rel="stylesheet">

    <!--Nifty Stylesheet [ REQUIRED ]-->
    <link href="../resource/core/css/nifty.min.css" rel="stylesheet">

    <!--Page Load Progress Bar [ OPTIONAL ]-->
    <link href="../resource/core/plugins/pace/css/pace.min.css" rel="stylesheet">

    <!--Themify Icons [ OPTIONAL ]-->
    <link href="../resource/core/themify-icons/themify-icons.min.css" rel="stylesheet">

    <!--Magic Checkbox [ OPTIONAL ]-->
    <link href="../resource/core/plugins/magic-check/css/magic-check.min.css" rel="stylesheet">

    <!-- bootstrap-select -->
    <link href="../resource/core/plugins/bootstrap-select/1.10.0/css/bootstrap-select.min.css" rel="stylesheet">

    <!-- font-awesome -->
    <link href="../resource/core/plugins/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">

    <!-- dialog -->
    <link href="../resource/core/plugins/bootstrap-dialog/1.35.2/css/bootstrap-dialog.min.css" rel="stylesheet">

    <!-- jqGrid -->
    <link href="../resource/core/plugins/jqGrid/5.1.1/css/ui.jqgrid-bootstrap.css" rel="stylesheet">

    <!-- ztree -->
    <link href="../resource/core/plugins/ztree/3.5.24/css/metroStyle/metroStyle.css" rel="stylesheet">

    <!--Bootstrap Datepicker [ OPTIONAL ]-->
    <link href="../resource/core/plugins/bootstrap-datepicker/bootstrap-datepicker.min.css" rel="stylesheet">

    <!--Select2 [ OPTIONAL ]-->
    <link href="../resource/core/plugins/select2/css/select2.min.css" rel="stylesheet">

    <!-- uploadify CSS -->
    <link rel="stylesheet" type="text/css" media="screen" href="../resource/core/plugins/uploadify/uploadify.css">

    <!--Full Calendar [ OPTIONAL ]-->
    <link href="../resource/core/plugins/fullcalendar/fullcalendar.min.css" rel="stylesheet">
    <link href="../resource/core/plugins/fullcalendar/nifty-skin/fullcalendar-nifty.min.css" rel="stylesheet">

    <!-- clockpicker CSS -->
    <link rel="stylesheet" type="text/css" media="screen" href="../resource/core/plugins/clockpicker/bootstrap-clockpicker.min.css">

    <!--Summernote [ OPTIONAL ]-->
    <link href="../resource/core/plugins/summernote/summernote.min.css" rel="stylesheet">

    <!--app core-->
    <link href="../resource/core/css/core/app-core.css" rel="stylesheet">

    <!--def css-->
    <link href="../resource/core/css/form.css" rel="stylesheet">


    <style>
        #topNav a,#topNav i{
            color: #FFF;
            width: 130px;
            text-align: center;
        }
        #topNav i{
            color: #FFF;
        }
        .topNav1{
            /*width: 130px;*/
        }
        .topNav1:hover{
            background-color: #479aec;
        }
        .topNav2{
            display: none;
            padding: 0;
            position: absolute;
            background-color: #2b7cd0;
            list-style: none;
            width: 130px;
        }
        .topNav2 a{
            text-align: center;
            line-height: 35px;
            display: table-cell;
        }
        .topNav2>li{
            /*padding: 0 22px;*/
            height: 35px;
            border-top: 1px solid #FFF;
            position: relative;
        }
        .topNav2>li:hover{
            background-color: #479aec;
        }
        .topNav3{
            text-align: center;
            width: 130px;
            padding: 0;
            list-style: none;
            position: absolute;
            background-color: #479aec;
            top: -1px;
            left: 130px;
            display: none;
        }
        .topNav3 li{
            border-top: 1px solid #FFF;
            height: 35px;
        }

        .navbar-top-links>li>a{
            height: 50px;
        }
        #content-container{
            padding-top: 50px;
        }
    </style>


</head>


<body>
<div id="container" class="effect mainnav-lg mainnav-fixed navbar-fixed footer-fixed">

    <!-- 顶部导航栏 -->
    <!--===================================================-->
    <header id="navbar" >
        <div id="navbar-container" class="boxed" style="background:#2b7cd0" > <!-- 原背景色#758697 -->

            <!-- logo & 名称 -->
            <!--================================-->
            <div class="navbar-header" >
                <a href="index" class="navbar-brand" style="height: 50px">
                    <img src="../resource/core/img/logo.png" alt="Nifty Logo" class="brand-icon" style="margin: 5px 5px">
                    <div class="brand-title" style="width:300px;background:#2b7cd0;line-height: 50px">
                        <span class="brand-text">上海斯帕达有限公司</span>
                    </div>
                </a>
            </div>
            <!--================================-->
            <!-- End logo & 名称-->


            <!--Navbar Dropdown-->
            <!--================================-->
            <div class="navbar-content clearfix">

                <%--顶部导航--%>
                <ul class="nav navbar-top-links pull-left" id="topNav">

                    <!--Navigation toogle button-->
                    <c:if test="${manager || fn:indexOf(modulePower.moduleName,'财务模块')>=0}">
                    <li class="tgl-menu-btn topNav1">
                        <a href="#"><i class="ti-calendar"></i> 财务管理</a>
                        <ul class="topNav2">
                            <li>
                                <a href="#">费用报销<i class="arrow"></i></a>
                                <ul class="topNav3">
                                    <li><a href="menu/com/expense?viewtype=1">申请中</a></li>
                                    <li><a href="menu/com/expense?viewtype=2">已通过</a></li>
                                    <li><a href="menu/com/expense?viewtype=3">被否决</a></li>
                                </ul>
                            </li>
                            <li>
                                <a href="#">付款申请<i class="arrow"></i></a>
                                <ul class="topNav3">
                                    <li><a href="menu/com/pay?viewtype=1">申请中</a></li>
                                    <li><a href="menu/com/pay?viewtype=2">已通过</a></li>
                                    <li><a href="menu/com/pay?viewtype=3">被否决</a></li>
                                </ul>
                            </li>
                            <li>
                                <a href="#">借款申请<i class="arrow"></i></a>
                                <ul class="topNav3">
                                    <li><a href="menu/com/loanApply?viewtype=1">申请中</a></li>
                                    <li><a href="menu/com/loanApply?viewtype=2">外借中</a></li>
                                    <li><a href="menu/com/loanApply?viewtype=3">已归还</a></li>
                                </ul>
                            </li>
                        </ul>
                    </li>
                    </c:if>

                    <c:if test="${manager || fn:indexOf(modulePower.moduleName,'CRM管理')>=0}">
                    <li class="tgl-menu-btn topNav1">
                        <a href="#"><i class="ti-calendar"></i> CRM管理</a>
                        <ul class="topNav2">
                            <li>
                                <a href="#">客户登记<i class="arrow"></i></a>
                                <ul class="topNav3">
                                    <li><a href="menu/com/customerInfo?viewtype=1">流转中</a></li>
                                    <li><a href="menu/com/customerInfo?viewtype=2">已归档</a></li>
                                </ul>
                            </li>
                            <li>
                                <a href="#">沟通拜访<i class="arrow"></i></a>
                                <ul class="topNav3">
                                    <li><a href="menu/com/businessTalk?viewtype=1">流转中</a></li>
                                    <li><a href="menu/com/businessTalk?viewtype=2">已归档</a></li>
                                </ul>
                            </li>
                            <li>
                                <a href="#">机会登记<i class="arrow"></i></a>
                                <ul class="topNav3">
                                    <li><a href="menu/com/businessChance?viewtype=1">流转中</a></li>
                                    <li><a href="menu/com/businessChance?viewtype=2">已归档</a></li>
                                </ul>
                            </li>
                            <li>
                                <a href="#">合同评审<i class="arrow"></i></a>
                                <ul class="topNav3">
                                    <li><a href="menu/com/contractDeal?viewtype=1">流转中</a></li>
                                    <li><a href="menu/com/contractDeal?viewtype=2">已归档</a></li>
                                </ul>
                            </li>
                            <li>
                                <a href="#">开票收款<i class="arrow"></i></a>
                                <ul class="topNav3">
                                    <li><a href="menu/com/contractPerform?viewtype=1">流转中</a></li>
                                    <li><a href="menu/com/contractPerform?viewtype=2">已归档</a></li>
                                </ul>
                            </li>
                        </ul>
                    </li>
                    </c:if>

                    <c:if test="${manager || fn:indexOf(modulePower.moduleName,'行政管理')>=0}">
                    <li class="tgl-menu-btn topNav1">
                        <a href="#"><i class="ti-calendar"></i> 行政管理</a>
                        <ul class="topNav2">
                            <li>
                                <a href="#">出差申请<i class="arrow"></i></a>
                                <ul class="topNav3">
                                    <li><a href="menu/com/businessTravel?viewtype=1">申请中</a></li>
                                    <li><a href="menu/com/businessTravel?viewtype=2">已通过</a></li>
                                    <li><a href="menu/com/businessTravel?viewtype=3">已完成</a></li>
                                </ul>
                            </li>
                            <li>
                                <a href="#">物品申请<i class="arrow"></i></a>
                                <ul class="topNav3">
                                    <li><a href="menu/com/goodsApply?viewtype=1">申请中</a></li>
                                    <li><a href="menu/com/goodsApply?viewtype=2">已领用</a></li>
                                    <li><a href="menu/com/goodsApply?viewtype=3">已否决</a></li>
                                </ul>
                            </li>
                        </ul>
                    </li>
                    </c:if>

                    <c:if test="${manager || fn:indexOf(modulePower.moduleName,'人事管理')>=0}">
                    <li class="tgl-menu-btn topNav1">
                        <a href="#"><i class="ti-calendar"></i> 人事管理</a>
                        <ul class="topNav2">
                            <li>
                                <a href="#">加班申请<i class="arrow"></i></a>
                                <ul class="topNav3">
                                    <li><a href="menu/com/overTime?viewtype=1">申请中</a></li>
                                    <li><a href="menu/com/overTime?viewtype=2">已通过</a></li>
                                    <li><a href="menu/com/overTime?viewtype=3">已完成</a></li>
                                </ul>
                            </li>
                            <li>
                                <a href="#">请假申请<i class="arrow"></i></a>
                                <ul class="topNav3">
                                    <li><a href="menu/com/leave?viewtype=1">申请中</a></li>
                                    <li><a href="menu/com/leave?viewtype=2">已通过</a></li>
                                    <li><a href="menu/com/leave?viewtype=3">已完成</a></li>
                                </ul>
                            </li>
                            <li>
                                <a href="#">离职申请<i class="arrow"></i></a>
                                <ul class="topNav3">
                                    <li><a href="menu/com/quit?viewtype=1">申请中</a></li>
                                    <li><a href="menu/com/quit?viewtype=2">已通过</a></li>
                                    <li><a href="menu/com/quit?viewtype=3">已否决</a></li>
                                </ul>
                            </li>
                        </ul>
                    </li>
                    </c:if>

                </ul>


                <ul class="nav navbar-top-links pull-right" style="background: #fff">

                    <li id="dropdownLi" class="dropdown">
                        <a href="#" data-toggle="dropdown" class="dropdown-toggle" aria-expanded="false" id="notificationsBtn">
                            <span class="pull-right badge badge-warning">${numTodo+numDraft}</span>
                        </a>
                        <div class="dropdown-menu dropdown-menu-md" id="notificationsBody">
                            <div class="pad-all bord-btm" style="padding: 8px;">
                                <div class="btn-group btn-group-xs" style="width: 100%">
                                    <button id="not_todo" class="btn btn-primary" style="width: 50%">待办(<span>${numTodo}</span>)</button>
                                    <button id="not_draft" class="btn btn-primary" style="width: 50%">草稿(<span>${numDraft}</span>)</button>
                                </div>
                            </div>
                            <div class="nano scrollable has-scrollbar" style="height: 265px;">
                                <div class="nano-content" tabindex="0" style="height: 265px">

                                    <%--通知栏内的内容--%>
                                    <ul id="not_container" class="head-list">
                                        <%--<li>--%>
                                            <%--<a class="media" href="javascript:void (0)">--%>
                                                <%--<div class="media-body">--%>
                                                    <%--<div class="text-nowrap">Write a news article</div>--%>
                                                    <%--<small class="text-muted">Last Update 8 hours ago</small>--%>
                                                <%--</div>--%>
                                            <%--</a>--%>
                                        <%--</li>--%>
                                    </ul>


                                </div>
                                <div class="nano-pane"><div class="nano-slider" style="height: 144px; transform: translate(0px, 0px);"></div></div>
                            </div>

                            <%--<div class="pad-all bord-top">--%>
                                <%--<a href="#" class="btn-link text-dark box-block">--%>
                                    <%--<i class="fa fa-angle-right fa-lg pull-right"></i>Show All Notifications--%>
                                <%--</a>--%>
                            <%--</div>--%>
                        </div>
                    </li>

                    <li>
                        <a href="#" class="aside-toggle navbar-aside-icon" id="tabController" >
                            <i class="pci-ver-dots"></i>
                        </a>
                    </li>
                </ul>

            </div>
            <!--================================-->
            <!--End Navbar Dropdown-->

        </div>
    </header>
    <!--===================================================-->
    <!-- END 顶部导航栏 -->

    <div class="boxed">

        <!-- 主页面 -->
        <!--===================================================-->
        <div id="content-container">

            <!-- ajax 异步加载页面... -->

        </div>
        <!--===================================================-->
        <!-- END 主页面 -->


        <!-- 左侧导航栏 -->
        <!--===================================================-->
        <nav id="mainnav-container">
            <div id="mainnav">

                <!-- 菜单 -->
                <!--================================-->
                <div id="mainnav-menu-wrap">
                    <div class="nano">
                        <div class="nano-content">

                            <!-- 用户头像栏 -->
                            <!--================================-->
                            <div id="mainnav-profile" class="mainnav-profile">
                                <div class="profile-wrap">
                                    <div class="pad-btm">
                                        <img class="img-circle img-sm img-border" src="../resource/core/img/profile-photos/1.png" alt="Profile Picture">
                                    </div>
                                    <a href="#profile-nav" class="box-block" data-toggle="collapse" aria-expanded="false">
                                            <span class="pull-right dropdown-toggle">
                                                <i class="dropdown-caret"></i>
                                            </span>
                                        <p class="mnp-name">${user.name}</p>
                                        <input type="hidden" id="userName" value="${user.name}" />
                                        <input type="hidden" id="userId" value="${user.id}" />
                                        <input type="hidden" id="friendId" />
                                        <input type="hidden" id="friendName" />
                                    </a>
                                </div>
                                <div id="profile-nav" class="collapse list-group bg-trans">

                                    <a id="imOut" href="logout" class="list-group-item">
                                        <i class="ti-unlock icon-lg icon-fw"></i> 登出
                                    </a>

                                    <c:if test="${modulePower==null && !manager}">
                                        <a href="javascript:void(0)" class="list-group-item" onclick="loadURL('<%=path%>/com/modulePower/input?reApply=0',$('#page-content'))">
                                            <i class="ti-unlock icon-lg icon-fw"></i> 申请权限
                                        </a>
                                    </c:if>

                                    <c:if test="${modulePower!=null && !manager}">
                                        <a href="javascript:void(0)" class="list-group-item" onclick="loadURL('<%=path%>/com/modulePower/input?reApply=1',$('#page-content'))">
                                            <i class="ti-unlock icon-lg icon-fw"></i> 再次申请权限
                                        </a>
                                    </c:if>
                                </div>
                            </div>

                            <!-- 菜单栏 -->
                            <!--================================-->
                            <ul id="mainnav-menu" class="list-group">
                                <li>
                                    <a href="menu/dashboard">
                                        <i class="ti-layout"></i>
						                    <span class="menu-title">
                                                <strong>首页</strong>
											</span>
                                    </a>
                                </li>
                                <li class="list-header">审批</li>
                                <li>
                                    <%--<a href="menu/createExam">--%>
                                        <a href="<%=path%>/com/startExam/toCreateExam">
                                        <i class="ti-layout-tab"></i>
                                        <span class="menu-title">
												<strong>发起审批</strong>
										</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="menu/myData">
                                        <i class="ti-layout-tab"></i>
                                        <span class="menu-title">
												<strong>我发起的</strong>
										</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="menu/exam">
                                        <i class="ti-layout-tab"></i>
                                        <span class="menu-title">
												<strong>待我审批的</strong>
										</span>
                                    </a>
                                </li>

                                <li>
                                    <a href="menu/remind">
                                        <i class="ti-layout-tab"></i>
                                        <span class="menu-title">
												<strong>抄送我的</strong>
										</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="menu/draft">
                                        <i class="ti-layout-tab"></i>
                                        <span class="menu-title">
												<strong>我的草稿</strong>
										</span>
                                    </a>
                                </li>

                                <%--<c:if test="${manager || fn:indexOf(modulePower.moduleName,'财务模块')>=0}">--%>
                                <%--<li>--%>
                                    <%--<a href="#">--%>
                                        <%--<i class="ti-calendar"></i>--%>
                                        <%--<span class="menu-title">--%>
                                            <%--<strong>财务管理</strong>--%>
                                        <%--</span>--%>
                                        <%--<i class="arrow"></i>--%>
                                    <%--</a>--%>
                                    <%--<ul class="collapse">--%>
                                        <%--<li>--%>
                                            <%--<a href="#">费用报销<i class="arrow"></i></a>--%>
                                            <%--<ul class="collapse">--%>
                                                <%--<li><a href="menu/com/expense?viewtype=1">申请中</a></li>--%>
                                                <%--<li><a href="menu/com/expense?viewtype=2">已通过</a></li>--%>
                                                <%--<li><a href="menu/com/expense?viewtype=3">被否决</a></li>--%>
                                            <%--</ul>--%>
                                        <%--</li>--%>
                                    <%--</ul>--%>
                                    <%--<ul class="collapse">--%>
                                        <%--<li>--%>
                                            <%--<a href="#">付款申请<i class="arrow"></i></a>--%>
                                            <%--<ul class="collapse">--%>
                                                <%--<li><a href="menu/com/pay?viewtype=1">申请中</a></li>--%>
                                                <%--<li><a href="menu/com/pay?viewtype=2">已通过</a></li>--%>
                                                <%--<li><a href="menu/com/pay?viewtype=3">被否决</a></li>--%>
                                            <%--</ul>--%>
                                        <%--</li>--%>
                                    <%--</ul>--%>
                                    <%--<ul class="collapse">--%>
                                        <%--<li>--%>
                                            <%--<a href="#">借款申请<i class="arrow"></i></a>--%>
                                            <%--<ul class="collapse">--%>
                                                <%--<li><a href="menu/com/loanApply?viewtype=1">申请中</a></li>--%>
                                                <%--<li><a href="menu/com/loanApply?viewtype=2">外借中</a></li>--%>
                                                <%--<li><a href="menu/com/loanApply?viewtype=3">已归还</a></li>--%>
                                            <%--</ul>--%>
                                        <%--</li>--%>
                                    <%--</ul>--%>
                                <%--</li>--%>
                                <%--</c:if>--%>

                                <%--<c:if test="${manager || fn:indexOf(modulePower.moduleName,'CRM管理')>=0}">--%>
                                <%--<li>--%>
                                    <%--<a href="#">--%>
                                        <%--<i class="ti-calendar"></i>--%>
                                        <%--<span class="menu-title">--%>
                                            <%--<strong>CRM管理</strong>--%>
                                        <%--</span>--%>
                                        <%--<i class="arrow"></i>--%>
                                    <%--</a>--%>
                                    <%--<ul class="collapse">--%>
                                        <%--<li>--%>
                                            <%--<a href="#">客户登记<i class="arrow"></i></a>--%>
                                            <%--<ul class="collapse">--%>
                                                <%--<li><a href="menu/com/customerInfo?viewtype=1">流转中</a></li>--%>
                                                <%--<li><a href="menu/com/customerInfo?viewtype=2">已归档</a></li>--%>
                                            <%--</ul>--%>
                                        <%--</li>--%>
                                    <%--</ul>--%>
                                    <%--<ul class="collapse">--%>
                                        <%--<li>--%>
                                            <%--<a href="#">沟通拜访<i class="arrow"></i></a>--%>
                                            <%--<ul class="collapse">--%>
                                                <%--<li><a href="menu/com/businessTalk?viewtype=1">流转中</a></li>--%>
                                                <%--<li><a href="menu/com/businessTalk?viewtype=2">已归档</a></li>--%>
                                            <%--</ul>--%>
                                        <%--</li>--%>
                                    <%--</ul>--%>
                                    <%--<ul class="collapse">--%>
                                        <%--<li>--%>
                                            <%--<a href="#">机会登记<i class="arrow"></i></a>--%>
                                            <%--<ul class="collapse">--%>
                                                <%--<li><a href="menu/com/businessChance?viewtype=1">流转中</a></li>--%>
                                                <%--<li><a href="menu/com/businessChance?viewtype=2">已归档</a></li>--%>
                                            <%--</ul>--%>
                                        <%--</li>--%>
                                    <%--</ul>--%>
                                    <%--<ul class="collapse">--%>
                                        <%--<li>--%>
                                            <%--<a href="#">合同评审<i class="arrow"></i></a>--%>
                                            <%--<ul class="collapse">--%>
                                                <%--<li><a href="menu/com/contractDeal?viewtype=1">流转中</a></li>--%>
                                                <%--<li><a href="menu/com/contractDeal?viewtype=2">已归档</a></li>--%>
                                            <%--</ul>--%>
                                        <%--</li>--%>
                                    <%--</ul>--%>
                                    <%--<ul class="collapse">--%>
                                        <%--<li>--%>
                                            <%--<a href="#">开票收款<i class="arrow"></i></a>--%>
                                            <%--<ul class="collapse">--%>
                                                <%--<li><a href="menu/com/contractPerform?viewtype=1">流转中</a></li>--%>
                                                <%--<li><a href="menu/com/contractPerform?viewtype=2">已归档</a></li>--%>
                                            <%--</ul>--%>
                                        <%--</li>--%>
                                    <%--</ul>--%>
                                <%--</li>--%>
                                <%--</c:if>--%>

                                <%--<c:if test="${manager || fn:indexOf(modulePower.moduleName,'行政管理')>=0}">--%>
                                <%--<li>--%>
                                    <%--<a href="#">--%>
                                        <%--<i class="ti-calendar"></i>--%>
                                        <%--<span class="menu-title">--%>
                                            <%--<strong>行政管理</strong>--%>
                                        <%--</span>--%>
                                        <%--<i class="arrow"></i>--%>
                                    <%--</a>--%>
                                    <%--<ul class="collapse">--%>
                                        <%--<li>--%>
                                            <%--<a href="#">出差申请<i class="arrow"></i></a>--%>
                                            <%--<ul class="collapse">--%>
                                                <%--<li><a href="menu/com/businessTravel?viewtype=1">申请中</a></li>--%>
                                                <%--<li><a href="menu/com/businessTravel?viewtype=2">已通过</a></li>--%>
                                                <%--<li><a href="menu/com/businessTravel?viewtype=3">已完成</a></li>--%>
                                            <%--</ul>--%>
                                        <%--</li>--%>
                                    <%--</ul>--%>
                                    <%--<ul class="collapse">--%>
                                        <%--<li>--%>
                                            <%--<a href="#">物品申请<i class="arrow"></i></a>--%>
                                            <%--<ul class="collapse">--%>
                                                <%--<li><a href="menu/com/goodsApply?viewtype=1">申请中</a></li>--%>
                                                <%--<li><a href="menu/com/goodsApply?viewtype=2">已领用</a></li>--%>
                                                <%--<li><a href="menu/com/goodsApply?viewtype=3">已否决</a></li>--%>
                                            <%--</ul>--%>
                                        <%--</li>--%>
                                    <%--</ul>--%>
                                <%--</li>--%>
                                <%--</c:if>--%>

                                <%--<c:if test="${manager || fn:indexOf(modulePower.moduleName,'人事管理')>=0}">--%>
                                <%--<li>--%>
                                    <%--<a href="#">--%>
                                        <%--<i class="ti-calendar"></i>--%>
                                        <%--<span class="menu-title">--%>
                                            <%--<strong>人事管理</strong>--%>
                                        <%--</span>--%>
                                        <%--<i class="arrow"></i>--%>
                                    <%--</a>--%>
                                    <%--<ul class="collapse">--%>
                                        <%--<li>--%>
                                            <%--<a href="#">加班申请<i class="arrow"></i></a>--%>
                                            <%--<ul class="collapse">--%>
                                                <%--<li><a href="menu/com/overTime?viewtype=1">申请中</a></li>--%>
                                                <%--<li><a href="menu/com/overTime?viewtype=2">已通过</a></li>--%>
                                                <%--<li><a href="menu/com/overTime?viewtype=3">已完成</a></li>--%>
                                            <%--</ul>--%>
                                        <%--</li>--%>
                                    <%--</ul>--%>
                                    <%--<ul class="collapse">--%>
                                        <%--<li>--%>
                                            <%--<a href="#">请假申请<i class="arrow"></i></a>--%>
                                            <%--<ul class="collapse">--%>
                                                <%--<li><a href="menu/com/leave?viewtype=1">申请中</a></li>--%>
                                                <%--<li><a href="menu/com/leave?viewtype=2">已通过</a></li>--%>
                                                <%--<li><a href="menu/com/leave?viewtype=3">已完成</a></li>--%>
                                            <%--</ul>--%>
                                        <%--</li>--%>
                                    <%--</ul>--%>
                                    <%--<ul class="collapse">--%>
                                        <%--<li>--%>
                                            <%--<a href="#">离职申请<i class="arrow"></i></a>--%>
                                            <%--<ul class="collapse">--%>
                                                <%--<li><a href="menu/com/quit?viewtype=1">申请中</a></li>--%>
                                                <%--<li><a href="menu/com/quit?viewtype=2">已通过</a></li>--%>
                                                <%--<li><a href="menu/com/quit?viewtype=3">已否决</a></li>--%>
                                            <%--</ul>--%>
                                        <%--</li>--%>
                                    <%--</ul>--%>
                                <%--</li>--%>
                                <%--</c:if>--%>


                                <c:if test="${manager}">
                                <li class="list-header">管理</li>

                                <li>
                                    <a href="#">
                                        <i class="ti-layout-tab"></i>
											<span class="menu-title">
												<strong>字典管理</strong>
											</span>
                                        <i class="arrow"></i>
                                    </a>

                                    <ul class="collapse">
                                        <li><a href="menu/dict">系统字典</a></li>
                                        <li><a href="menu/dict_custom">用户字典</a></li>
                                    </ul>
                                </li>

                                <li>
                                    <a href="#">
                                        <i class="ti-home"></i>
											<span class="menu-title">
												<strong>企业管理</strong>
											</span>
                                        <i class="arrow"></i>
                                    </a>

                                    <ul class="collapse">
                                        <li><a href="menu/company">企业信息</a></li>
                                        <li><a href="menu/member">成员信息</a></li>
                                        <li><a href="menu/post">岗位信息</a></li>
                                        <li><a href="menu/department">部门信息</a></li>
                                        <li><a href="menu/power">职权信息</a></li>
                                        <li><a href="menu/group">群组信息</a></li>
                                        <li><a href="menu/processBrief">流程简要</a></li>
                                    </ul>
                                </li>
                                </c:if>

                              <%--  <li>
                                    <a href="#">
                                        <i class="ti-layout-tab"></i>
											<span class="menu-title">
												<strong>流程管理</strong>
											</span>
                                        <i class="arrow"></i>
                                    </a>

                                    <ul class="collapse">
                                        <li><a href="menu/processBrief">流程简要</a></li>
                                        <li><a href="menu/remind">提醒事项</a></li>
                                        <li><a href="menu/toDo">个人待办事宜</a></li>
                                        <li><a href="menu/taskRecord?type=1">已办未结</a></li>
                                        <li><a href="menu/taskRecord?type=2">已办已结</a></li>
                                        <li><a href="menu/draft">草稿</a></li>
                                    </ul>
                                </li>--%>


                                    </ul>
                                </li>




                            </ul>
                            <!--================================-->
                            <!-- End 菜单栏 -->

                        </div>
                    </div>
                </div>
                <!--================================-->
                <!-- End 菜单 -->

            </div>
        </nav>


    </div>



    <!-- 底部栏 -->
    <!--===================================================-->
    <footer id="footer">

        <!-- Visible when footer positions are fixed -->
        <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
        <%--<div class="show-fixed pull-right">--%>
            <%--You have <a href="#" class="text-bold text-main"><span class="label label-danger">3</span> pending action.</a>--%>
        <%--</div>--%>


        <!-- Visible when footer positions are static -->
        <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
        <%--<div class="hide-fixed pull-right pad-rgt">--%>
            <%--14GB of <strong>512GB</strong> Free.--%>
        <%--</div>--%>


        <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
        <!-- Remove the class "show-fixed" and "hide-fixed" to make the content always appears. -->
        <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

        <p class="pad-lft">&#0169; 2016 上海玖达信息技术有限公司</p>


    </footer>
    <!--===================================================-->
    <!-- END 底部栏 -->


    <!-- 移回顶部按钮 -->
    <!--===================================================-->
    <button class="scroll-top btn">
        <i class="pci-chevron chevron-up"></i>
    </button>
    <!--===================================================-->
    <!-- END 移回顶部按钮 -->


</div>
<!--===================================================-->
<!-- END OF CONTAINER -->


<!--JAVASCRIPT-->
<!--=================================================-->

<!--jQuery [ REQUIRED ]-->
<script src="../resource/core/js/jquery-2.2.4.min.js"></script>

<!--BootstrapJS [ RECOMMENDED ]-->
<script src="../resource/core/js/bootstrap.min.js"></script>

<!--Nifty Admin [ RECOMMENDED ]-->
<script src="../resource/core/js/nifty.js"></script>
<%--<script src="../resource/core/js/nifty.min.js"></script>--%>

<!--Page Load Progress Bar [ OPTIONAL ]-->
<script src="../resource/core/plugins/pace/js/pace.min.js"></script>

<!--Bootstrap Select [ OPTIONAL ]-->
<script src="../resource/core/plugins/bootstrap-select/1.10.0/js/bootstrap-select.min.js"></script>
<script src="../resource/core/plugins/bootstrap-select/1.10.0/js/i18n/defaults-zh_CN.min.js"></script>

<!-- jsrender -->
<script src="../resource/core/plugins/jsview/0.9.8/jsrender.min.js"></script>

<!-- dialog -->
<script src="../resource/core/plugins/bootstrap-dialog/1.35.2/js/bootstrap-dialog.min.js"></script>
<script src="../resource/core/plugins/bootstrap-dialog/1.35.2/js/i18n/defaults-zh_CN.js"></script>

<!-- jqGrid -->
<script src="../resource/core/plugins/jqGrid/5.1.1/js/jquery.jqGrid.min.js"></script>
<script src="../resource/core/plugins/jqGrid/5.1.1/js/i18n/grid.locale-cn.js"></script>

<!-- validation -->
<script src="../resource/core/plugins/jquery-validation/1.15.0/jquery.validate.min.js"></script>
<script src="../resource/core/plugins/jquery-validation/1.15.0/i18n/messages_zh.min.js"></script>

<!-- ztree -->
<script src="../resource/core/plugins/ztree/3.5.24/js/jquery.ztree.all.min.js"></script>

<!--Bootstrap Datepicker [ OPTIONAL ]-->
<script src="../resource/core/plugins/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="../resource/core/plugins/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>

<!--Select2 [ OPTIONAL ]-->
<script src="../resource/core/plugins/select2/js/select2.min.js"></script>

<!-- uploadify -->
<script src="../resource/core/plugins/uploadify/jquery.uploadify.min.js"></script>
<!-- hpj包装的文件上传插件 -->
<script src="../resource/core/plugins/uploadify/upload.js"></script>

<!--Full Calendar [ OPTIONAL ]-->
<script src="../resource/core/plugins/fullcalendar/lib/moment.min.js"></script>
<script src="../resource/core/plugins/fullcalendar/lib/jquery-ui.custom.min.js"></script>
<script src="../resource/core/plugins/fullcalendar/fullcalendar.js"></script>

<!--clockpicker [ OPTIONAL ]-->
<script src="../resource/core/plugins/clockpicker/bootstrap-clockpicker.min.js"></script>

<!--Summernote [ OPTIONAL ]-->
<script src="../resource/core/plugins/summernote/summernote.min.js"></script>
<!-- include summernote-ko-KR -->
<script src="../resource/core/plugins/summernote/lang/summernote-zh-CN.js"></script>

<!-- easy-pie-chart -->
<script src="../resource/core/plugins/easy-pie-chart/jquery.easypiechart.min.js"></script>

<!--app core-->
<script src="../resource/core/js/core/app-core.js"></script>
<script src="../resource/core/js/core/app-config.js"></script>
<script src="../resource/core/js/core/app-common.js"></script>
<!-- ueditor js-->
<script type="text/javascript" charset="utf-8" src="../resource/core/plugins/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="../resource/core/plugins/ueditor/ueditor.all.min.js"> </script>


<!--=================================================-->
<script>

    $(document).ready(function() {

       setTimeout(function() {

           //__toastr_success('OA产品 演示版 Ver:0.0.1');

      }, 1000);

    });



    //顶部导航栏
    $(".topNav1").mouseover(function(){
        $(this).find(".topNav2").show();
    });

    $(".topNav1").mouseout(function(){
        $(this).find(".topNav2").hide();
    });

    $(".topNav2 li").mouseover(function(){
        $(this).find(".topNav3").show();
    });

    $(".topNav2 li").mouseout(function(){
        $(this).find(".topNav3").hide();
    });

    // side-menu 忽略链接
    $(document).on('click', '#topNav a[href="#"]', function(e) {
        e.preventDefault();
    });

    // side-menu 其他链接处理
    $(document).on('click', '#topNav a[href!="#"]', function(e) {
        e.preventDefault();
        var $this = $(e.currentTarget);

        if (!$this.attr('target') || $this.attr('target') == '_self') {
            window.location.hash = $this.attr('href');
        } else if ($this.attr('target') == '_blank') {
            window.open($this.attr('href'));
        } else if ($this.attr('target') == '_top') {
            window.location = ($this.attr('href'));
        }
        e.preventDefault();
    });

    // hash 改变事件绑定
    $(window).on('hashchange', function() {
        var url = '';
        var $ajax_container = $('#content-container');
        if (location.hash) {
            //获取目标及参数
            url = location.hash.replace(/^#/, '');
        }
        if(url){
            var $a_link = $('#topNav').find('a[href="' + url + '"]');
            var title = $a_link.text();
            if (title) {
                document.title = window._admin.title + ' | ' +title;
            }
            loadURL(url, $ajax_container);
        }

    });

    $(function(){
        //通知框调整好位置
        var btnWidth=$("#notificationsBtn").parent().width();
        var bodyWidth=$("#notificationsBody").width();
        $("#notificationsBody").css("left",0-(bodyWidth-btnWidth)+"px");
    });

    $("#notificationsBtn").click(function(){
        if($(this).attr("aria-expanded")=="false"){
            $("#not_todo").trigger("click");
        }
    });

    $("#notificationsBody").click(function(){
        return false;
    });

    $("#not_todo").click(function(){
        __ajax_get("../main/taskRecord/toDoList",null,function(data){
            $("#not_container").empty();
            var list=data.dataRows;
            $("#not_todo").find("span").text(list.length);
            for(var i=0;i<list.length;i++){
                var newLi='<li>'
                        +'<a class="media not_a" href="javascript:void(0)">'
                        +'<input type="hidden" class="not_url" value="'+list[i].url+'" />'
                        +'<div class="media-body">'
                        +'<div class="text-nowrap">'+list[i].pname+'</div>'
                        +'<small class="text-muted">'+list[i].time+'</small>'
                        +'</div>'
                        +'</a>'
                        +'</li>';
                $("#not_container").append(newLi);
            }

            $(".not_a").off("click").on("click",function(){
                loadURL($(this).find(".not_url").val(),$('#page-content'));
            });
            $("#notificationsBtn>span").text(parseInt($("#not_todo>span").text())+parseInt($("#not_draft>span").text()));

        });
//        return false;
    });

    $("#not_draft").click(function(){
        __ajax_get("../main/taskRecord/draftList",null,function(data){
            $("#not_container").empty();
            var list=data.dataRows;
            $("#not_draft").find("span").text(list.length);
            for(var i=0;i<list.length;i++){
                var newLi='<li>'
                        +'<a class="media not_a" href="javascript:void(0)">'
                        +'<input type="hidden" class="not_url" value="'+list[i].url+'" />'
                        +'<div class="media-body">'
                        +'<div class="text-nowrap">'+list[i].module+'-'+list[i].pname+'</div>'
                        +'<small class="text-muted">'+list[i].time+'</small>'
                        +'</div>'
                        +'</a>'
                        +'</li>';
                $("#not_container").append(newLi);
            }

            $(".not_a").off("click").on("click",function(){
                loadURL($(this).find(".not_url").val(),$('#page-content'));
            });
            $("#notificationsBtn>span").text(parseInt($("#not_todo>span").text())+parseInt($("#not_draft>span").text()));
        });
//        return false;
    });

</script>

</body>
</html>
